package com.yt.lxh.enums;

import  com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Getter;

@Getter
@AllArgsConstructor
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum CouponType{
    NO_CONDITION(0,"无门槛"),
    FULL_REDUCE(1,"满减"),
    EACH_FULL_REDUCE(2,"每满减"),
    DISCOUNT(3, "折扣");

    @EnumValue
    private Integer code;

    private String comment;

}
